package com.panshi.service;

import com.panshi.entity.AppComment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Component
@FeignClient(value = "hasbei-comment-provider")
public interface FeignCommentClient {

    @GetMapping("a-comment/byAid/{answerId}")
    public List<AppComment> queryCommentByAid(@PathVariable Integer answerId);
}
